package io.renren.modules.sys.service.impl;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.sys.dao.EquCoolingvestDao;
import io.renren.modules.sys.entity.EquCoolingvestEntity;
import io.renren.modules.sys.service.EquCoolingvestService;


@Service("equCoolingvestService")
public class EquCoolingvestServiceImpl extends ServiceImpl<EquCoolingvestDao, EquCoolingvestEntity> implements EquCoolingvestService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<EquCoolingvestEntity> page = this.selectPage(
                new Query<EquCoolingvestEntity>(params).getPage(),
                new EntityWrapper<EquCoolingvestEntity>()
        );
        return new PageUtils(page);
    }

    @Override
    public List<Map<String, Object>> selectEqu(){
        return this.baseMapper.selectEqu();
    }

}
